<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>模板语法</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        {{name}} <!-- 插值表达式 -->
        <div v-text="name"></div>
        <div v-html="name + ' html'"></div>
    </div>
    <script>
        var vm = new Vue({
            el: "#app",
            data: {
                name: "<h1>ty lovely</h1>"
            }
        });
    </script>
</body>
</html>